<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<ul>
    <li>
        yanle
    </li>
    <li>
        lele
    </li>
    <li>
        age = 12345
    </li>
</ul>

<script>
    let $ul = document.getElementsByTagName('ul')[0];
    $ul.addEventListener('click', function (e) {
        console.log(e);
    })
</script>

</body>
</html>